package net.jiastudy.biz.sys.service;

import net.jiastudy.biz.sys.entity.File;
import net.jiastudy.biz.sys.entity.FileTarget;

import java.util.List;
import java.util.Set;

public interface AttachmentService {

    public Long create(Set<Long> fileIds, FileTarget fileTarget);

    public Long update(Long id, Set<Long> fileIds);

    public boolean delete(Long id);

    public List<File> findFildsByAttachmentId(Long id);

    public Long addFile(Long id, Set<Long> fileIds);

    public File getLatestFileByAttachmentId(Long id);
}
